// 版权归 瞄你个汪 所有。使用本代码应遵守相关法律法规和Apache 2.0开源许可要求。
package top.geeke.entity;

import top.geeke.entity.base.EntityBase;
import top.geeke.eunm.SysStatusEnum;
import top.geeke.toolkit.supertable.annotation.SuperColumn;
import top.geeke.toolkit.supertable.annotation.SuperIndex;
import top.geeke.toolkit.supertable.annotation.SuperTable;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 系统字典值表
 * </p>
 * @author 瞄你个汪
 * @since 2024-05-01 12:00:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_dict_data")
@SuperTable(value = "系统字典值表", isSystem = true, indexes = {
        @SuperIndex(indexName ="sys_index_{table}_C", indexFields ="code"),
})
public class SysDictData extends EntityBase implements Serializable {
    private static final long serialVersionUID = 1L;

    @SuperColumn(value = "字典类型ID")
    private Long typeId;

    @SuperColumn(value = "值", length = 128)
    private String value;

    @SuperColumn(value = "编码", length = 128)
    private String code;

//    @SuperColumn(value = "名称", nullable = true, length = 128)
//    private String name;

    @SuperColumn(value = "显示样式-标签颜色", nullable = true, length = 512)
    private String tagType;

    @SuperColumn(value = "显示样式-Style", nullable = true, length = 512)
    private String styleSetting;

    @SuperColumn(value = "显示样式-Class", nullable = true, length = 512)
    private String styleClass;

    @SuperColumn(value = "拓展数据(保存业务功能的配置项)", nullable = true)
    private String extData;

    @SuperColumn(value = "内置参数(不可删改)")
    private boolean isSystem;

    @SuperColumn(value = "状态")
    private SysStatusEnum status = SysStatusEnum.Enabled;

    @SuperColumn(value = "排序", defaultValue = "100")
    private Integer orderNo = 100;

    @SuperColumn(value = "备注", nullable = true, length = 128)
    private String remark;
}
